import request from "../utils/request"
import {LoginResponseType, UserType} from "../types/Types";
import {AxiosResponse} from "axios";

export function login(data: UserType):Promise<AxiosResponse<LoginResponseType>> {
    return request.post("/api/login", data)
}